#include "srchpassword.h"
#include "ui_srchpassword.h"
#include"spasswordnest1.h"
#include<QTimerEvent>
#include<QTimer>
#include "spasswordnext2.h"

srchpassword::srchpassword(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::srchpassword)
{
    ui->setupUi(this);
    setMouseTracking(true);

}

srchpassword::~srchpassword()
{
    delete ui;
}
void srchpassword::closeEvent(QCloseEvent *event) {
    emit cancle();
}

void srchpassword::on_pushButton_clicked()
{
    this->hide();
    p1.show();
    timerid=this->startTimer(1500);
}
void srchpassword::timerEvent(QTimerEvent *){
    p1.hide();
    p2.show();
    killTimer(timerid);
}
